package com.diandiji.demo.entity;

import java.io.Serializable;

//用户实体类
public class User implements Serializable {
    //通过继承Serializable把对象的状态信息通过网络进行传输，或者需要将对象的状态信息持久化，以便将来使用时都需要把对象进行序列化。
    private String username;//用户名称
    private int userID;//用户ID
    private String account;//用户账号
    private String password;//用户密码

    public String getUsername() {return username;}
    public void setUsername(String username) { this.username = username; }

    public int getUserID() {return userID;}
    public void setUserID(int userID) { this.userID = userID; }

    public String getAccount() {return account;}
    public void setAccount(String account) { this.account = account; }

    public String getPassword() {return password;}
    public void setPassword(String password) { this.password = password; }
}
